import { createRouter, createWebHistory } from 'vue-router'


const routes = [
    {
        path: '/manage',
        name: 'manage',
        component: () => import('../components/manage/manageIndex.vue'),
        children: [
            {
            path: '/map',
            name: 'map',
            component: () => import('../components/manage/testMap.vue')
            }
        ]
    },
    {
        path: '/login',
        name: 'login',
        component: () => import('../components/login/loginIndex.vue')
    },
    {
        path: '/register',
        name: 'register',
        component: () => import('../components/login/registerIndex.vue')
    },

]

const router = createRouter({

    history: createWebHistory(),
    routes,
})

export default router;

